package com.zhangdi.dwperms.service.impl;

import com.zhangdi.dwperms.service.UserService;
import com.zhangdi.dwperms.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<User> findAll() {
        return null;
    }

    @Override
    public List<User> findAllByTenant(long tenantId) {
        return null;
    }

    @Override
    public User findUserById(long userId){
        throw new UnsupportedOperationException();
    }

    @Override
    public User findUserByAccId(long accId){
        return null;
    }

    @Transactional
    @Override
    public int addUser(User user) {
        return 0;
    }
}
